package be.telio.freeagent.model;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement(name = "contact")
public class FAContact implements FAEntity
{
    @XmlElement(name = "id")
    public Integer id;

    @XmlElement(name = "organisation-name")
    public String organisationName;

    @XmlElement(name = "first-name")
    public String firstName;

    @XmlElement(name = "last-name")
    public String lastName;

    @XmlElement(name = "address1")
    public String address1;

    @XmlElement(name = "address2")
    public String address2;

    @XmlElement(name = "address3")
    public String address3;

    @XmlElement(name = "town")
    public String town;

    @XmlElement(name = "region")
    public String region;

    @XmlElement(name = "country")
    public String country;

    @XmlElement(name = "postcode")
    public String postcode;

    @XmlElement(name = "phone-number")
    public String phoneNumber;

    @XmlElement(name = "mobile")
    public String mobile;

    @XmlElement(name = "email")
    public String email;

    @XmlElement(name = "billing-email")
    public String billingEmail;

    @XmlElement(name = "contact-name-on-invoices")
    public Boolean contactNameOnInvoices;

    @XmlElement(name = "sales-tax-registration-number")
    public String salesTaxRegistrationNumber;

    @XmlElement(name = "uses-contact-invoice-sequence")
    public Boolean usesContactInvoiceSequence;

    @XmlElement(name = "account-balance")
    public Double accountBalance;

    public String getEntityListName()
    {
        return "contacts";
    }

    public Integer getId()
    {
        return id;
    }
}

